﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" ValidateRequest="false"CodeBehind="Add_Edit_ProjectNews.aspx.cs" Inherits="WebHousingInfo.Admin.Add_Edit_ProjectNews" %>

<asp:Content ID="content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript">
        function confirmAction()
         {
            if(confirm('Bạn có chắc chắn muốn xóa???'))
            {
                // you clicked the OK button.
                // you can allow the form to post the data.
                return true;
            }
            else 
                // you clicked the Cancel button.
                // you can disallow the form submission.
                return false;
         }
         
         function confirmApprove()
         {
            if(confirm('Bạn có chắc chắn muốn kết thúc đăng dự án?'))
            {
                // you clicked the OK button.
                // you can allow the form to post the data.
                return true;
            }
            else 
                // you clicked the Cancel button.
                // you can disallow the form submission.
                return false;
         }
</script>
<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
<script type="text/javascript">

    window.onload = function () {

        CKEDITOR.replace('ctl00_ContentPlaceHolder1_txtchitiet');

    }
</script>
<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
           <asp:Panel ID="PanelDasboard" runat="server"  Visible="true">
            <div class="dashboard">
                <asp:Panel ID="pn_result" Visible="false" runat="server">                
                    <div style="border:solid 1px coral; width:100%; text-align:center; height:30px; background:#FFFFCC; margin-bottom:10px;">                    
                        <asp:Label style="line-height:25px;" ID="lblthongbao" runat="server" Text="Thông Báo" ForeColor="Black" 
                            Font-Bold="True"></asp:Label>
                    </div>
                </asp:Panel> 
                <h2 class="ico_mug">
                    <asp:Label ID="lblxem_duyet" runat="server" Text="Đăng dự án"></asp:Label>
                </h2>  
                <div id="contact-area">			
                    <label class="contact_label_duan">Tên dự án:</label>
                    <asp:TextBox ID="txtname" class="contact_content_duan" MaxLength="200" runat="server"></asp:TextBox>    
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtname" ErrorMessage="?">*</asp:RequiredFieldValidator>            		
                    
                    <label class="contact_label_duan">Loại dự án:</label>
                    <asp:DropDownList ID="dlloaiduan" DataTextField="Value" 
                                    DataValueField="Key" class="contactdroptime_duan" runat="server">
                    </asp:DropDownList>
                    
                    <label class="contact_label_duan">Mô tả:</label>
                    <asp:TextBox ID="txtmota" class="contact_content_duan" MaxLength="200" runat="server"></asp:TextBox> 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtmota" ErrorMessage="?">*</asp:RequiredFieldValidator>
                    
                    <label class="contact_label_duan">Địa chỉ:</label>
                    <asp:TextBox ID="txtaddress" class="contact_content_duan" MaxLength="200" runat="server"></asp:TextBox> 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtaddress" ErrorMessage="?">*</asp:RequiredFieldValidator>
                                        
                    <label class="contact_label_duan">Tổng diện tích:</label>
                    <asp:TextBox ID="txtsure" class="contact_content_duan" MaxLength="200" runat="server"></asp:TextBox> 
                            
                    <label class="contact_label_duan">Số tầng:</label>
                    <asp:TextBox ID="txtsotang" class="contact_content_duan" MaxLength="200" runat="server"></asp:TextBox>                     
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                            ControlToValidate="txtsotang" ErrorMessage="Định dạng không đúng" 
                            ValidationExpression="^\.?[\d]+$"></asp:RegularExpressionValidator>
                    
                    <label class="contact_label_duan">Chủ đầu tư:</label>
                    <asp:TextBox ID="txtdautu" class="contact_content_duan" MaxLength="200" runat="server"></asp:TextBox> 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtdautu" ErrorMessage="?">*</asp:RequiredFieldValidator>
                    
                    <label class="contact_label_duan">Đơn vị thi công:</label>
                    <asp:TextBox ID="txtthicong" class="contact_content_duan" MaxLength="200" runat="server"></asp:TextBox> 
                    
                    <label class="contact_label_duan">Đơn vị thiết kế:</label>
                    <asp:TextBox ID="txtthietke" class="contact_content_duan" MaxLength="200" runat="server"></asp:TextBox> 
                    
                    <label class="contact_label_duan">Qui mô dự án:</label>
                    <asp:TextBox ID="txtquimo" class="contact_content_duan" MaxLength="200" runat="server"></asp:TextBox> 
                    
                    <div>
                        <label class="contact_label_duan" style="float:none;">Chi tiết dự án:</label>
                        <asp:TextBox ID="txtchitiet" class="contact_content_duan" TextMode="MultiLine" runat="server"></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="txtchitiet" ErrorMessage="?">*</asp:RequiredFieldValidator>
                    </div>                                        
                    <label class="contact_label_duan" style="line-height:30px;">Kích hoạt:</label>                  
                            <asp:CheckBox ID="cbkichhoat" runat="server" />
                    <div align="right" style="padding-right:142px;">	                            
				        <asp:Button ID="btnduyet" Visible="false" CausesValidation="false" class="sumitbussiness" runat="server" 
                            Text="Duyệt Tin" onclick="btnduyet_Click"/>
                        <asp:Button ID="btndangtin" runat="server" class="sumitbussiness" Text="Đăng Tin" 
                            onclick="btndangtin_Click" />
                        <asp:Button ID="btncapnhat" runat="server" Visible="false" class="sumitbussiness" 
                            Text="Cập Nhật" onclick="btncapnhat_Click" />
                        <asp:Button ID="btnketthuc" Visible="false" 
                            OnClientClick="javascript:return confirmApprove();" runat="server" 
                            CausesValidation="false" class="cancelbussiness" Text="Kết thúc đăng tin" 
                            onclick="btnketthuc_Click" Width="120px" />
				        <asp:Button ID="btnxoa" runat="server" CausesValidation="false" 
                            class="cancelbussiness" Text="Xóa" 
                            onclick="btnxoa_Click" OnClientClick="javascript:return confirmAction();" 
                            Visible="false"/>                                
                        <asp:Button ID="btnhuy" runat="server" CausesValidation="false" 
                            class="cancelbussiness" onclick="btnhuy_Click" Text="Huỷ" />
                    </div>                        	
                </div> 
            </div>
       </asp:Panel>     
</asp:Content>